<!DOCTYPE html>
<html>
<head>
<meta charset="windows-1256">
<title>Insert title here</title>
<script>
function f1()
{
	
	document.images[0].src="idea.jpg";
}
try{
	//document.getElementById('B1').onclick=f1;
}catch(err){alert(err.message);}
window.onload=function(){document.getElementById('B1').onclick=f1;};
</script>
</head>
<body>
<input type="button" value ="click" id="B1">
</body>
</html>